package com.dyz.wsw.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author dyz
 * @date 2025/1/12 18:55
 */
@Configuration
@ConfigurationProperties(prefix = "wsw")
@Data
public class WswProperties {
    /**
     * 公钥
     */
    private String publicKey;
    /**
     * 私钥
     */
    private String privateKey;
    /**
     * jwt前缀，默认Bearer
     */
    private String jwtPrefix = "Bearer ";

    /**
     * jwt过期时间(单位:分钟)
     * 默认15分钟
     */
    private Integer jwtExpiredTime = 15;

    /**
     * 不需要校验jwt的请求
     * 宽松校验，写放行路径前缀即可
     */
    private List<String> permitUri;
}
